<?php if(!empty($slideshow))
    {
?>
<div id ="slideshow">
                <ul class="slider">
                    <?php foreach($slideshow as $slide)
                    {?>
                    <li><a href="<?php echo $slide->link; ?>"><img src="<?php echo $slide->image; ?>" title="<?php echo $slide->title; ?>" alt="<?php echo $slide->title; ?>" /></a></li>
                    <?php }?>
                    </ul>
</div>
<?php } ?>